From: Keir Fraser Date: Thu, 17 Apr 2008 14:48:40 +0000 (+0100) Subject: x86: Fix the non-PAE build. X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~14215^2~164 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/%22bookmarks://%22Dat/%22http:/www.example.com/cgi/%22https:/%22bookmarks:/%22Dat?a=commitdiff_plain;h=c25c3c9ae5d4453833de9e8d90759f702188528e;p=xen.git x86: Fix the non-PAE build. Signed-off-by: Keir Fraser --- diff --git a/xen/drivers/passthrough/vtd/x86/vtd.c b/xen/drivers/passthrough/vtd/x86/vtd.c index 2f62460b7d..a4172e0711 100644 --- a/xen/drivers/passthrough/vtd/x86/vtd.c +++ b/xen/drivers/passthrough/vtd/x86/vtd.c @@ -130,8 +130,6 @@ void iommu_set_pgd(struct domain *d) { struct hvm_iommu *hd = domain_hvm_iommu(d); unsigned long p2m_table; - int level = agaw_to_level(hd->agaw); - l3_pgentry_t *l3e; p2m_table = mfn_x(pagetable_get_mfn(d->arch.phys_table)); @@ -173,6 +171,8 @@ void iommu_set_pgd(struct domain *d) int i; u64 pmd_maddr; unsigned long flags; + l3_pgentry_t *l3e; + int level = agaw_to_level(hd->agaw); spin_lock_irqsave(&hd->mapping_lock, flags); hd->pgd_maddr = alloc_pgtable_maddr(); @@ -236,6 +236,8 @@ void iommu_set_pgd(struct domain *d) #elif CONFIG_PAGING_LEVELS == 4 mfn_t pgd_mfn; + l3_pgentry_t *l3e; + int level = agaw_to_level(hd->agaw); switch ( level ) {